package com.mycompany.app.common.extjs.form.web;

import com.mycompany.app.common.audit.access.filter.model.LoggingMessage;
import com.mycompany.app.common.extjs.ExtJSBaseAction;
import com.opensymphony.xwork2.ModelDriven;

@SuppressWarnings("serial")
public class FormResponserAction extends ExtJSBaseAction implements ModelDriven<LoggingMessage>{
    
    @SuppressWarnings("unchecked")
    private LoggingMessage loggingMessage=new LoggingMessage();
    
    public String saveLoggingMessage()
    {
        
        printObject(loggingMessage);
//        System.out.println(user+remoteHost+remoteIp);
        ajaxEcho("{success:true}");
        
        return SUCCESS;
    }

    public LoggingMessage getLoggingMessage() {
    
        return loggingMessage;
    }

    public LoggingMessage getModel() {

        return loggingMessage;
    }

}
